package com.smile.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ToString
@TableName("feisuan_give_an_alarm")
public class FeisuanGiveAnAlarm implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 事件类型
     */
    @TableField(value = "event_type")
    private Integer eventType;

    /**
     * 事件名称
     */
    @TableField(value = "event_name")
    private String eventName;

    @TableField(value = "latitude")
    private BigDecimal latitude;

    @TableField(value = "longitude")
    private BigDecimal longitude;

    /**
     * 告警简介
     */
    @TableField(value = "give_an_alarm_introduce")
    private String giveAnAlarmIntroduce;

    /**
     * 告警地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 组织id
     */
    @TableField(value = "organization_id")
    private Long organizationId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 设备id
     */
    @TableField(value = "drone_id")
    private Long droneId;

    /**
     * 告警来源
     */
    @TableField(value = "source")
    private Integer source;


    @TableField(value = "state")
    private Integer state;

    @TableField(value = "create_time")
    private LocalDateTime createTime;


}
